package cll;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Environment environment = new Environment();
		environment.addCells(10, Type.FollicularDendriticCell);
		//environment.addCells(10, Type.ReticularCell);
		environment.addCells(3,Type.Centroblast);
		//environment.addCells(10,Type.TCell);
		environment.addCells(10, Type.THelper);

		
		Fenetre fenetre = new Fenetre(new Visuel(environment));
		
		
		for(int i = 0; i <300000;i++){
			environment.vit();
			//environment.diffuseChemokine();
			//environment.updateGradient();
			//System.out.println(i +" secondes "+environment.cells.size());
			fenetre.repaint();
			
			System.out.println(environment.affinite());
			
		}
		
		
		for(Cell c :environment.cells){
			System.out.println(c.type+","+c.positionspeed+","+c.antigen+","+c.rayon+","+c.CD38);
		}
		/*for(int i=90;i<110;i++){
			for(int j=90;j<110;j++){
				System.out.print((int)environment.germinalCenter[i][j].getChemokine()+" ");
			}
			System.out.println();
		}*/
		/*for(int i=90;i<110;i++){
			for(int j=90;j<110;j++){
				System.out.print((int)environment.germinalCenter[i][j].getGradx()+" ");
			}
			System.out.println();
		}*/
	}

}
